﻿@model MVC3DEMO.Models.FileStore

@{
    ViewBag.Title = "jwplayer";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<div id='player'>This div will be replaced by the JW Player.</div>

<script type='text/javascript' src="../../Content/js/jwplayer.js"></script>

<script type='text/javascript'>

   var filepath = @Html.Raw(Json.Encode(Model));

   jwplayer('player').setup({
   'flashplayer':'@Url.Content("/FLV Player/player.swf")',
   'width': '400',
   'height': '300',
   'file': filepath
   });
</script>

